package mdm.com.web.dao;

import org.springframework.stereotype.Repository;

import mdm.com.web.entity.UserPermission;

import java.util.List;

@Repository
public interface UserPermissionMapper {
    int deleteByPrimaryKey(Integer cUserPermissionId);

    int insert(UserPermission record);

    int insertSelective(UserPermission record);

    UserPermission selectByPrimaryKey(Integer cUserPermissionId);

    int updateByPrimaryKeySelective(UserPermission record);

    int updateByPrimaryKey(UserPermission record);

    void deleteByUserId(Integer cUserId);

    List<UserPermission> selectPermissionByUsername(String cUsername);
}